#tiger-dict-selection-toolbar {
  position: absolute;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000;
}

.tiger-dict-toolbar-btn {
  background: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  padding: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiger-dict-toolbar-btn:hover {
  background: #3367d6;
}

#tiger-dict-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 9999;
}

.tiger-dict-translation-card {
  position: absolute;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  min-width: 300px;
  max-width: 400px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, sans-serif;
}

.tiger-dict-panel-header {
  display: flex;
  justify-content: flex-end;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.tiger-dict-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.tiger-dict-close-btn:hover {
  background: #f5f5f5;
}

.tiger-dict-panel-content {
  padding: 16px;
}

.tiger-dict-loading {
  text-align: center;
  color: #666;
  padding: 20px;
}

.tiger-dict-word-info h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #333;
}

.tiger-dict-phonetic {
  margin: 0 0 16px 0;
  color: #666;
  font-style: italic;
}

.tiger-dict-translation-details {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.tiger-dict-translation-details p {
  margin: 0;
  color: #444;
  line-height: 1.5;
}

.tiger-dict-word-explains {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.tiger-dict-word-explains h4,
.tiger-dict-word-examples h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
}

.tiger-dict-word-explains ul,
.tiger-dict-word-examples ul {
  margin: 0;
  padding-left: 20px;
}

.tiger-dict-word-explains li,
.tiger-dict-word-examples li {
  margin-bottom: 8px;
  color: #444;
  line-height: 1.4;
}

.tiger-dict-word-examples li p {
  margin: 4px 0;
}

.tiger-dict-word-examples li p strong {
  color: #333;
}

.tiger-dict-add-btn {
  background: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
}

.tiger-dict-add-btn:hover:not(:disabled) {
  background: #3367d6;
}

.tiger-dict-add-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.tiger-dict-error-message {
  color: #d93025;
  text-align: center;
  padding: 20px;
}
